/*
 * Copyright (c) 2010, Frederik Vanhoutte This library is free software; you can
 * redistribute it and/or modify it under the terms of the GNU Lesser General
 * Public License as published by the Free Software Foundation; either version
 * 2.1 of the License, or (at your option) any later version.
 * http://creativecommons.org/licenses/LGPL/2.1/ This library is distributed in
 * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
 * the GNU Lesser General Public License for more details. You should have
 * received a copy of the GNU Lesser General Public License along with this
 * library; if not, write to the Free Software Foundation, Inc., 51 Franklin St,
 * Fifth Floor, Boston, MA 02110-1301 USA
 */
package wblut.hemesh;

import wblut.geom.WB_Point3d;

// TODO: Auto-generated Javadoc
/**
 * Archimedean polyhedra.
 * 
 * @author Implemented by Frederik Vanhoutte (W:Blut), painstakingly collected by David Marec.
 * Many thanks, without David this wouldn't be here.
 * 
 */

public class HEC_Archimedes extends HEC_Creator {
	
	/** The Constant names. */
	final static String[]		names		= { "cuboctahedron",
			"great rhombicosidodecahedron", "great rhombicuboctahedron",
			"icosidodecahedron", "small rhombicosidodecahedron",
			"small rhombicuboctahedron", "snub cube", "snub dodecahedron",
			"truncated cube", "truncated dodecahedron",
			"truncated icosahedron", "truncated octahedron",
			"truncated tetrahedron"		};

	/** The Constant vertices. */
	final static double[][][]	vertices	= {
			{ { -1., 0., 0. }, { -0.5, -0.5, -0.707107 },
			{ -0.5, -0.5, 0.707107 }, { -0.5, 0.5, -0.707107 },
			{ -0.5, 0.5, 0.707107 }, { 0., -1., 0. }, { 0., 1., 0. },
			{ 0.5, -0.5, -0.707107 }, { 0.5, -0.5, 0.707107 },
			{ 0.5, 0.5, -0.707107 }, { 0.5, 0.5, 0.707107 }, { 1., 0., 0. } },
			{ { -1., -1.30902, -3.42705 }, { -1., -1.30902, 3.42705 },
			{ -1., 1.30902, -3.42705 }, { -1., 1.30902, 3.42705 },
			{ -0.5, -0.5, -3.73607 }, { -0.5, -0.5, 3.73607 },
			{ -0.5, 0.5, -3.73607 }, { -0.5, 0.5, 3.73607 },
			{ -0.5, -3.73607, -0.5 }, { -0.5, -3.73607, 0.5 },
			{ -0.5, -2.11803, -3.11803 }, { -0.5, -2.11803, 3.11803 },
			{ -0.5, 3.73607, -0.5 }, { -0.5, 3.73607, 0.5 },
			{ -0.5, 2.11803, -3.11803 }, { -0.5, 2.11803, 3.11803 },
			{ 0.5, -0.5, -3.73607 }, { 0.5, -0.5, 3.73607 },
			{ 0.5, 0.5, -3.73607 }, { 0.5, 0.5, 3.73607 },
			{ 0.5, -3.73607, -0.5 }, { 0.5, -3.73607, 0.5 },
			{ 0.5, -2.11803, -3.11803 }, { 0.5, -2.11803, 3.11803 },
			{ 0.5, 3.73607, -0.5 }, { 0.5, 3.73607, 0.5 },
			{ 0.5, 2.11803, -3.11803 }, { 0.5, 2.11803, 3.11803 },
			{ 1., -1.30902, -3.42705 }, { 1., -1.30902, 3.42705 },
			{ 1., 1.30902, -3.42705 }, { 1., 1.30902, 3.42705 },
			{ -3.42705, -1., -1.30902 }, { -3.42705, -1., 1.30902 },
			{ -3.42705, 1., -1.30902 }, { -3.42705, 1., 1.30902 },
			{ -2.92705, -1.80902, -1.61803 }, { -2.92705, -1.80902, 1.61803 },
			{ -2.92705, 1.80902, -1.61803 }, { -2.92705, 1.80902, 1.61803 },
			{ -1.80902, -1.61803, -2.92705 }, { -1.80902, -1.61803, 2.92705 },
			{ -1.80902, 1.61803, -2.92705 }, { -1.80902, 1.61803, 2.92705 },
			{ -1.30902, -3.42705, -1. }, { -1.30902, -3.42705, 1. },
			{ -1.30902, -2.42705, -2.61803 }, { -1.30902, -2.42705, 2.61803 },
			{ -1.30902, 2.42705, -2.61803 }, { -1.30902, 2.42705, 2.61803 },
			{ -1.30902, 3.42705, -1. }, { -1.30902, 3.42705, 1. },
			{ -2.61803, -1.30902, -2.42705 }, { -2.61803, -1.30902, 2.42705 },
			{ -2.61803, 1.30902, -2.42705 }, { -2.61803, 1.30902, 2.42705 },
			{ -3.73607, -0.5, -0.5 }, { -3.73607, -0.5, 0.5 },
			{ -3.73607, 0.5, -0.5 }, { -3.73607, 0.5, 0.5 },
			{ -1.61803, -2.92705, -1.80902 }, { -1.61803, -2.92705, 1.80902 },
			{ -1.61803, 2.92705, -1.80902 }, { -1.61803, 2.92705, 1.80902 },
			{ -3.11803, -0.5, -2.11803 }, { -3.11803, -0.5, 2.11803 },
			{ -3.11803, 0.5, -2.11803 }, { -3.11803, 0.5, 2.11803 },
			{ -2.11803, -3.11803, -0.5 }, { -2.11803, -3.11803, 0.5 },
			{ -2.11803, 3.11803, -0.5 }, { -2.11803, 3.11803, 0.5 },
			{ -2.42705, -2.61803, -1.30902 }, { -2.42705, -2.61803, 1.30902 },
			{ -2.42705, 2.61803, -1.30902 }, { -2.42705, 2.61803, 1.30902 },
			{ 1.61803, -2.92705, -1.80902 }, { 1.61803, -2.92705, 1.80902 },
			{ 1.61803, 2.92705, -1.80902 }, { 1.61803, 2.92705, 1.80902 },
			{ 2.42705, -2.61803, -1.30902 }, { 2.42705, -2.61803, 1.30902 },
			{ 2.42705, 2.61803, -1.30902 }, { 2.42705, 2.61803, 1.30902 },
			{ 3.73607, -0.5, -0.5 }, { 3.73607, -0.5, 0.5 },
			{ 3.73607, 0.5, -0.5 }, { 3.73607, 0.5, 0.5 },
			{ 2.11803, -3.11803, -0.5 }, { 2.11803, -3.11803, 0.5 },
			{ 2.11803, 3.11803, -0.5 }, { 2.11803, 3.11803, 0.5 },
			{ 1.30902, -3.42705, -1. }, { 1.30902, -3.42705, 1. },
			{ 1.30902, -2.42705, -2.61803 }, { 1.30902, -2.42705, 2.61803 },
			{ 1.30902, 2.42705, -2.61803 }, { 1.30902, 2.42705, 2.61803 },
			{ 1.30902, 3.42705, -1. }, { 1.30902, 3.42705, 1. },
			{ 2.61803, -1.30902, -2.42705 }, { 2.61803, -1.30902, 2.42705 },
			{ 2.61803, 1.30902, -2.42705 }, { 2.61803, 1.30902, 2.42705 },
			{ 3.11803, -0.5, -2.11803 }, { 3.11803, -0.5, 2.11803 },
			{ 3.11803, 0.5, -2.11803 }, { 3.11803, 0.5, 2.11803 },
			{ 1.80902, -1.61803, -2.92705 }, { 1.80902, -1.61803, 2.92705 },
			{ 1.80902, 1.61803, -2.92705 }, { 1.80902, 1.61803, 2.92705 },
			{ 2.92705, -1.80902, -1.61803 }, { 2.92705, -1.80902, 1.61803 },
			{ 2.92705, 1.80902, -1.61803 }, { 2.92705, 1.80902, 1.61803 },
			{ 3.42705, -1., -1.30902 }, { 3.42705, -1., 1.30902 },
			{ 3.42705, 1., -1.30902 }, { 3.42705, 1., 1.30902 } },
			{ { -0.5, 1.20711, -1.91421 }, { -0.5, 1.20711, 1.91421 },
			{ -0.5, -1.20711, -1.91421 }, { -0.5, -1.20711, 1.91421 },
			{ -0.5, -1.91421, 1.20711 }, { -0.5, -1.91421, -1.20711 },
			{ -0.5, 1.91421, 1.20711 }, { -0.5, 1.91421, -1.20711 },
			{ 0.5, 1.20711, -1.91421 }, { 0.5, 1.20711, 1.91421 },
			{ 0.5, -1.20711, -1.91421 }, { 0.5, -1.20711, 1.91421 },
			{ 0.5, -1.91421, 1.20711 }, { 0.5, -1.91421, -1.20711 },
			{ 0.5, 1.91421, 1.20711 }, { 0.5, 1.91421, -1.20711 },
			{ 1.20711, -0.5, -1.91421 }, { 1.20711, -0.5, 1.91421 },
			{ 1.20711, 0.5, -1.91421 }, { 1.20711, 0.5, 1.91421 },
			{ 1.20711, -1.91421, -0.5 }, { 1.20711, -1.91421, 0.5 },
			{ 1.20711, 1.91421, -0.5 }, { 1.20711, 1.91421, 0.5 },
			{ -1.20711, -0.5, -1.91421 }, { -1.20711, -0.5, 1.91421 },
			{ -1.20711, 0.5, -1.91421 }, { -1.20711, 0.5, 1.91421 },
			{ -1.20711, -1.91421, -0.5 }, { -1.20711, -1.91421, 0.5 },
			{ -1.20711, 1.91421, -0.5 }, { -1.20711, 1.91421, 0.5 },
			{ -1.91421, -0.5, 1.20711 }, { -1.91421, -0.5, -1.20711 },
			{ -1.91421, 0.5, 1.20711 }, { -1.91421, 0.5, -1.20711 },
			{ -1.91421, 1.20711, -0.5 }, { -1.91421, 1.20711, 0.5 },
			{ -1.91421, -1.20711, -0.5 }, { -1.91421, -1.20711, 0.5 },
			{ 1.91421, -0.5, 1.20711 }, { 1.91421, -0.5, -1.20711 },
			{ 1.91421, 0.5, 1.20711 }, { 1.91421, 0.5, -1.20711 },
			{ 1.91421, 1.20711, -0.5 }, { 1.91421, 1.20711, 0.5 },
			{ 1.91421, -1.20711, -0.5 }, { 1.91421, -1.20711, 0.5 } },
			{ { 0., -1.61803, 0. }, { 0., 1.61803, 0. },
			{ 0.262866, -0.809017, -1.37638 },
			{ 0.262866, 0.809017, -1.37638 }, { 0.425325, -1.30902, 0.850651 },
			{ 0.425325, 1.30902, 0.850651 }, { 0.688191, -0.5, 1.37638 },
			{ 0.688191, 0.5, 1.37638 }, { 1.11352, -0.809017, -0.850651 },
			{ 1.11352, 0.809017, -0.850651 }, { -1.37638, 0., -0.850651 },
			{ -0.688191, -0.5, -1.37638 }, { -0.688191, 0.5, -1.37638 },
			{ 1.37638, 0., 0.850651 }, { 0.951057, -1.30902, 0. },
			{ 0.951057, 1.30902, 0. }, { 0.850651, 0., -1.37638 },
			{ -0.951057, -1.30902, 0. }, { -0.951057, 1.30902, 0. },
			{ -1.53884, -0.5, 0. }, { -1.53884, 0.5, 0. },
			{ 1.53884, -0.5, 0. }, { 1.53884, 0.5, 0. },
			{ -0.850651, 0., 1.37638 }, { -1.11352, -0.809017, 0.850651 },
			{ -1.11352, 0.809017, 0.850651 },
			{ -0.425325, -1.30902, -0.850651 },
			{ -0.425325, 1.30902, -0.850651 },
			{ -0.262866, -0.809017, 1.37638 }, { -0.262866, 0.809017, 1.37638 } },
			{ { -0.5, -0.5, -2.11803 }, { -0.5, -0.5, 2.11803 },
			{ -0.5, 0.5, -2.11803 }, { -0.5, 0.5, 2.11803 },
			{ -0.5, -2.11803, -0.5 }, { -0.5, -2.11803, 0.5 },
			{ -0.5, 2.11803, -0.5 }, { -0.5, 2.11803, 0.5 },
			{ 0., -1.30902, -1.80902 }, { 0., -1.30902, 1.80902 },
			{ 0., 1.30902, -1.80902 }, { 0., 1.30902, 1.80902 },
			{ 0.5, -0.5, -2.11803 }, { 0.5, -0.5, 2.11803 },
			{ 0.5, 0.5, -2.11803 }, { 0.5, 0.5, 2.11803 },
			{ 0.5, -2.11803, -0.5 }, { 0.5, -2.11803, 0.5 },
			{ 0.5, 2.11803, -0.5 }, { 0.5, 2.11803, 0.5 },
			{ -1.80902, 0., -1.30902 }, { -1.80902, 0., 1.30902 },
			{ -0.809017, -1.61803, -1.30902 },
			{ -0.809017, -1.61803, 1.30902 }, { -0.809017, 1.61803, -1.30902 },
			{ -0.809017, 1.61803, 1.30902 }, { -1.61803, -1.30902, -0.809017 },
			{ -1.61803, -1.30902, 0.809017 }, { -1.61803, 1.30902, -0.809017 },
			{ -1.61803, 1.30902, 0.809017 }, { -2.11803, -0.5, -0.5 },
			{ -2.11803, -0.5, 0.5 }, { -2.11803, 0.5, -0.5 },
			{ -2.11803, 0.5, 0.5 }, { -1.30902, -1.80902, 0. },
			{ -1.30902, -0.809017, -1.61803 },
			{ -1.30902, -0.809017, 1.61803 }, { -1.30902, 0.809017, -1.61803 },
			{ -1.30902, 0.809017, 1.61803 }, { -1.30902, 1.80902, 0. },
			{ 0.809017, -1.61803, -1.30902 }, { 0.809017, -1.61803, 1.30902 },
			{ 0.809017, 1.61803, -1.30902 }, { 0.809017, 1.61803, 1.30902 },
			{ 1.61803, -1.30902, -0.809017 }, { 1.61803, -1.30902, 0.809017 },
			{ 1.61803, 1.30902, -0.809017 }, { 1.61803, 1.30902, 0.809017 },
			{ 2.11803, -0.5, -0.5 }, { 2.11803, -0.5, 0.5 },
			{ 2.11803, 0.5, -0.5 }, { 2.11803, 0.5, 0.5 },
			{ 1.30902, -1.80902, 0. }, { 1.30902, -0.809017, -1.61803 },
			{ 1.30902, -0.809017, 1.61803 }, { 1.30902, 0.809017, -1.61803 },
			{ 1.30902, 0.809017, 1.61803 }, { 1.30902, 1.80902, 0. },
			{ 1.80902, 0., -1.30902 }, { 1.80902, 0., 1.30902 } },
			{ { -0.5, -0.5, -1.20711 }, { -0.5, -0.5, 1.20711 },
			{ -0.5, 0.5, -1.20711 }, { -0.5, 0.5, 1.20711 },
			{ -0.5, -1.20711, -0.5 }, { -0.5, -1.20711, 0.5 },
			{ -0.5, 1.20711, -0.5 }, { -0.5, 1.20711, 0.5 },
			{ 0.5, -0.5, -1.20711 }, { 0.5, -0.5, 1.20711 },
			{ 0.5, 0.5, -1.20711 }, { 0.5, 0.5, 1.20711 },
			{ 0.5, -1.20711, -0.5 }, { 0.5, -1.20711, 0.5 },
			{ 0.5, 1.20711, -0.5 }, { 0.5, 1.20711, 0.5 },
			{ -1.20711, -0.5, -0.5 }, { -1.20711, -0.5, 0.5 },
			{ -1.20711, 0.5, -0.5 }, { -1.20711, 0.5, 0.5 },
			{ 1.20711, -0.5, -0.5 }, { 1.20711, -0.5, 0.5 },
			{ 1.20711, 0.5, -0.5 }, { 1.20711, 0.5, 0.5 } },
			{ { -1.14261, -0.337754, -0.621226 },
			{ -1.14261, 0.337754, 0.621226 },
			{ -1.14261, -0.621226, 0.337754 },
			{ -1.14261, 0.621226, -0.337754 },
			{ 1.14261, -0.337754, 0.621226 }, { 1.14261, 0.337754, -0.621226 },
			{ 1.14261, -0.621226, -0.337754 }, { 1.14261, 0.621226, 0.337754 },
			{ -0.337754, -1.14261, 0.621226 },
			{ -0.337754, 1.14261, -0.621226 },
			{ -0.337754, -0.621226, -1.14261 },
			{ -0.337754, 0.621226, 1.14261 },
			{ 0.337754, -1.14261, -0.621226 }, { 0.337754, 1.14261, 0.621226 },
			{ 0.337754, -0.621226, 1.14261 }, { 0.337754, 0.621226, -1.14261 },
			{ -0.621226, -1.14261, -0.337754 },
			{ -0.621226, 1.14261, 0.337754 },
			{ -0.621226, -0.337754, 1.14261 },
			{ -0.621226, 0.337754, -1.14261 },
			{ 0.621226, -1.14261, 0.337754 }, { 0.621226, 1.14261, -0.337754 },
			{ 0.621226, -0.337754, -1.14261 }, { 0.621226, 0.337754, 1.14261 } },
			{ { -2.05022, -0.64303, 0.175393 },
			{ 2.05022, -0.64303, -0.175393 }, { -1.64507, 0.64303, 1.23608 },
			{ 1.64507, 0.64303, -1.23608 }, { -2.09275, 0.330921, 0.398127 },
			{ 2.09275, 0.330921, -0.398127 }, { -1.33296, 1.64692, -0.398127 },
			{ 1.33296, 1.64692, 0.398127 }, { -1.82527, -0.330921, 1.09842 },
			{ 1.82527, -0.330921, -1.09842 }, { -0.626047, 1.74619, -1.09842 },
			{ 0.626047, 1.74619, 1.09842 }, { -1.06222, 1.45402, 1.18539 },
			{ 1.06222, 1.45402, -1.18539 }, { -1.93214, 0.84755, -0.442882 },
			{ 1.93214, 0.84755, 0.442882 }, { -1.14487, -0.84755, 1.6182 },
			{ 1.14487, -0.84755, -1.6182 }, { -1.58199, -1.45402, -0.175393 },
			{ 1.58199, -1.45402, 0.175393 }, { -1.05741, 0.374822, -1.84093 },
			{ 1.05741, 0.374822, 1.84093 }, { -0.439138, -0.374822, -2.07709 },
			{ 0.439138, -0.374822, 2.07709 }, { -1.56241, -1.2495, 0.803274 },
			{ 1.56241, -1.2495, -0.803274 },
			{ -1.86331, -0.728335, -0.803274 },
			{ 1.86331, -0.728335, 0.803274 }, { -1.70007, 1.2495, 0.442882 },
			{ 1.70007, 1.2495, -0.442882 }, { -0.728114, -1.64692, 1.18539 },
			{ 0.728114, -1.64692, -1.18539 },
			{ -0.265655, -1.74619, -1.23608 }, { 0.265655, -1.74619, 1.23608 },
			{ -0.759791, -1.97784, -0.398127 },
			{ 0.759791, -1.97784, 0.398127 }, { -1.19922, -1.41527, -1.09842 },
			{ 1.19922, -1.41527, 1.09842 }, { -1.79033, 0.192894, -1.18539 },
			{ 1.79033, 0.192894, 1.18539 }, { -1.30644, -0.567715, -1.6182 },
			{ 1.30644, -0.567715, 1.6182 }, { -0.853311, 0.728335, 1.84093 },
			{ 0.853311, 0.728335, -1.84093 }, { -1.37941, 1.10316, -1.23608 },
			{ 1.37941, 1.10316, 1.23608 }, { -0.105036, 0.567715, -2.07709 },
			{ 0.105036, 0.567715, 2.07709 }, { -0.468228, 2.09705, -0.175393 },
			{ 0.468228, 2.09705, 0.175393 }, { -0.300897, 1.97784, 0.803274 },
			{ 0.300897, 1.97784, -0.803274 }, { -0.161563, 1.41527, 1.6182 },
			{ 0.161563, 1.41527, -1.6182 }, { -0.544174, -0.192894, 2.07709 },
			{ 0.544174, -0.192894, -2.07709 },
			{ -0.232068, -2.09705, 0.442882 },
			{ 0.232068, -2.09705, -0.442882 },
			{ -0.204101, -1.10316, 1.84093 }, { 0.204101, -1.10316, -1.84093 } },
			{ { -0.5, 1.20711, 1.20711 }, { -0.5, 1.20711, -1.20711 },
			{ -0.5, -1.20711, 1.20711 }, { -0.5, -1.20711, -1.20711 },
			{ 0.5, 1.20711, 1.20711 }, { 0.5, 1.20711, -1.20711 },
			{ 0.5, -1.20711, 1.20711 }, { 0.5, -1.20711, -1.20711 },
			{ 1.20711, -0.5, 1.20711 }, { 1.20711, -0.5, -1.20711 },
			{ 1.20711, 0.5, 1.20711 }, { 1.20711, 0.5, -1.20711 },
			{ 1.20711, 1.20711, -0.5 }, { 1.20711, 1.20711, 0.5 },
			{ 1.20711, -1.20711, -0.5 }, { 1.20711, -1.20711, 0.5 },
			{ -1.20711, -0.5, 1.20711 }, { -1.20711, -0.5, -1.20711 },
			{ -1.20711, 0.5, 1.20711 }, { -1.20711, 0.5, -1.20711 },
			{ -1.20711, 1.20711, -0.5 }, { -1.20711, 1.20711, 0.5 },
			{ -1.20711, -1.20711, -0.5 }, { -1.20711, -1.20711, 0.5 } },
			{ { 0., -1.61803, 2.4899 }, { 0., -1.61803, -2.4899 },
			{ 0., 1.61803, 2.4899 }, { 0., 1.61803, -2.4899 },
			{ 0.425325, -2.92705, 0.262866 }, { 0.425325, 2.92705, 0.262866 },
			{ 0.688191, -2.11803, 1.96417 }, { 0.688191, 2.11803, 1.96417 },
			{ -2.75276, 0., -1.11352 }, { -2.06457, -2.11803, 0.262866 },
			{ -2.06457, 2.11803, 0.262866 }, { -1.37638, -2.61803, -0.262866 },
			{ -1.37638, 2.61803, -0.262866 },
			{ -0.688191, -2.11803, -1.96417 },
			{ -0.688191, 2.11803, -1.96417 }, { 1.37638, -2.61803, 0.262866 },
			{ 1.37638, 2.61803, 0.262866 }, { 2.75276, 0., 1.11352 },
			{ 1.80171, -1.30902, -1.96417 }, { 1.80171, 1.30902, -1.96417 },
			{ 2.06457, -2.11803, -0.262866 }, { 2.06457, 2.11803, -0.262866 },
			{ 2.22703, 0., 1.96417 }, { 2.22703, -1.61803, -1.11352 },
			{ 2.22703, 1.61803, -1.11352 }, { -2.65236, -1.30902, 0.262866 },
			{ -2.65236, 1.30902, 0.262866 }, { 2.65236, -1.30902, -0.262866 },
			{ 2.65236, 1.30902, -0.262866 }, { 2.91522, -0.5, 0.262866 },
			{ 2.91522, 0.5, 0.262866 }, { -2.91522, -0.5, -0.262866 },
			{ -2.91522, 0.5, -0.262866 }, { 0.951057, -1.30902, 2.4899 },
			{ 0.951057, -1.30902, -2.4899 }, { 0.951057, 1.30902, 2.4899 },
			{ 0.951057, 1.30902, -2.4899 }, { 0.850651, -2.61803, 1.11352 },
			{ 0.850651, 2.61803, 1.11352 }, { -0.951057, -1.30902, 2.4899 },
			{ -0.951057, -1.30902, -2.4899 }, { -0.951057, 1.30902, 2.4899 },
			{ -0.951057, 1.30902, -2.4899 }, { -1.53884, -0.5, 2.4899 },
			{ -1.53884, -0.5, -2.4899 }, { -1.53884, 0.5, 2.4899 },
			{ -1.53884, 0.5, -2.4899 }, { 1.53884, -0.5, 2.4899 },
			{ 1.53884, -0.5, -2.4899 }, { 1.53884, 0.5, 2.4899 },
			{ 1.53884, 0.5, -2.4899 }, { -2.22703, 0., -1.96417 },
			{ -2.22703, -1.61803, 1.11352 }, { -2.22703, 1.61803, 1.11352 },
			{ -0.850651, -2.61803, -1.11352 },
			{ -0.850651, 2.61803, -1.11352 }, { -1.80171, -1.30902, 1.96417 },
			{ -1.80171, 1.30902, 1.96417 }, { -0.425325, -2.92705, -0.262866 },
			{ -0.425325, 2.92705, -0.262866 } },
			{ { -0.16246, -2.11803, 1.27598 }, { -0.16246, 2.11803, 1.27598 },
			{ 0.16246, -2.11803, -1.27598 }, { 0.16246, 2.11803, -1.27598 },
			{ -0.262866, -0.809017, -2.32744 },
			{ -0.262866, -2.42705, -0.425325 },
			{ -0.262866, 0.809017, -2.32744 },
			{ -0.262866, 2.42705, -0.425325 },
			{ 0.262866, -0.809017, 2.32744 }, { 0.262866, -2.42705, 0.425325 },
			{ 0.262866, 0.809017, 2.32744 }, { 0.262866, 2.42705, 0.425325 },
			{ 0.688191, -0.5, -2.32744 }, { 0.688191, 0.5, -2.32744 },
			{ 1.21392, -2.11803, 0.425325 }, { 1.21392, 2.11803, 0.425325 },
			{ -2.06457, -0.5, 1.27598 }, { -2.06457, 0.5, 1.27598 },
			{ -1.37638, -1., 1.80171 }, { -1.37638, 1., 1.80171 },
			{ -1.37638, -1.61803, -1.27598 }, { -1.37638, 1.61803, -1.27598 },
			{ -0.688191, -0.5, 2.32744 }, { -0.688191, 0.5, 2.32744 },
			{ 1.37638, -1., -1.80171 }, { 1.37638, 1., -1.80171 },
			{ 1.37638, -1.61803, 1.27598 }, { 1.37638, 1.61803, 1.27598 },
			{ -1.7013, 0., -1.80171 }, { 1.7013, 0., 1.80171 },
			{ -1.21392, -2.11803, -0.425325 },
			{ -1.21392, 2.11803, -0.425325 },
			{ -1.96417, -0.809017, -1.27598 },
			{ -1.96417, 0.809017, -1.27598 }, { 2.06457, -0.5, -1.27598 },
			{ 2.06457, 0.5, -1.27598 }, { 2.22703, -1., -0.425325 },
			{ 2.22703, 1., -0.425325 }, { 2.38949, -0.5, 0.425325 },
			{ 2.38949, 0.5, 0.425325 }, { -1.11352, -1.80902, 1.27598 },
			{ -1.11352, 1.80902, 1.27598 }, { 1.11352, -1.80902, -1.27598 },
			{ 1.11352, 1.80902, -1.27598 }, { -2.38949, -0.5, -0.425325 },
			{ -2.38949, 0.5, -0.425325 }, { -1.63925, -1.80902, 0.425325 },
			{ -1.63925, 1.80902, 0.425325 }, { 1.63925, -1.80902, -0.425325 },
			{ 1.63925, 1.80902, -0.425325 }, { 1.96417, -0.809017, 1.27598 },
			{ 1.96417, 0.809017, 1.27598 }, { 0.850651, 0., 2.32744 },
			{ -2.22703, -1., 0.425325 }, { -2.22703, 1., 0.425325 },
			{ -0.850651, 0., -2.32744 }, { -0.525731, -1.61803, -1.80171 },
			{ -0.525731, 1.61803, -1.80171 }, { 0.525731, -1.61803, 1.80171 },
			{ 0.525731, 1.61803, 1.80171 } },
			{ { -1.5, -0.5, 0. }, { -1.5, 0.5, 0. }, { -1., -1., -0.707107 },
			{ -1., -1., 0.707107 }, { -1., 1., -0.707107 },
			{ -1., 1., 0.707107 }, { -0.5, -1.5, 0. },
			{ -0.5, -0.5, -1.41421 }, { -0.5, -0.5, 1.41421 },
			{ -0.5, 0.5, -1.41421 }, { -0.5, 0.5, 1.41421 }, { -0.5, 1.5, 0. },
			{ 0.5, -1.5, 0. }, { 0.5, -0.5, -1.41421 }, { 0.5, -0.5, 1.41421 },
			{ 0.5, 0.5, -1.41421 }, { 0.5, 0.5, 1.41421 }, { 0.5, 1.5, 0. },
			{ 1., -1., -0.707107 }, { 1., -1., 0.707107 },
			{ 1., 1., -0.707107 }, { 1., 1., 0.707107 }, { 1.5, -0.5, 0. },
			{ 1.5, 0.5, 0. } },
			{ { 0., -1., -0.612372 }, { 0., 1., -0.612372 },
			{ -0.57735, -1., 0.204124 }, { -0.57735, 1., 0.204124 },
			{ -0.288675, -0.5, 1.02062 }, { -0.288675, 0.5, 1.02062 },
			{ 0.57735, 0., 1.02062 }, { 1.1547, 0., 0.204124 },
			{ -0.866025, -0.5, -0.612372 }, { -0.866025, 0.5, -0.612372 },
			{ 0.866025, -0.5, -0.612372 }, { 0.866025, 0.5, -0.612372 } } };
	
	/** The Constant faces. */
	static final int[][][]		faces		= {
			{ { 3, 9, 7, 1 }, { 2, 8, 10, 4 }, { 8, 5, 7, 11 }, { 2, 0, 1, 5 },
			{ 4, 6, 3, 0 }, { 10, 11, 9, 6 }, { 11, 10, 8 }, { 2, 4, 0 },
			{ 5, 8, 2 }, { 4, 10, 6 }, { 7, 9, 11 }, { 0, 3, 1 }, { 1, 7, 5 },
			{ 6, 9, 3 } },
			{ { 1, 5, 7, 3, 43, 55, 67, 65, 53, 41 },
			{ 108, 28, 16, 18, 30, 110, 102, 106, 104, 100 },
			{ 23, 29, 17, 5, 1, 11 }, { 6, 2, 14, 26, 30, 18 },
			{ 57, 56, 32, 36, 72, 68, 69, 73, 37, 33 },
			{ 83, 115, 119, 87, 86, 118, 114, 82, 90, 91 },
			{ 89, 88, 80, 112, 116, 84, 85, 117, 113, 81 },
			{ 35, 39, 75, 71, 70, 74, 38, 34, 58, 59 },
			{ 4, 16, 28, 22, 10, 0 }, { 3, 7, 19, 31, 27, 15 },
			{ 66, 54, 42, 2, 6, 4, 0, 40, 52, 64 },
			{ 17, 29, 109, 101, 105, 107, 103, 111, 31, 19 },
			{ 78, 82, 114, 102, 110, 96 }, { 37, 73, 61, 47, 41, 53 },
			{ 3, 15, 49, 43 }, { 22, 28, 108, 94 }, { 95, 109, 29, 23 },
			{ 42, 48, 14, 2 }, { 52, 40, 46, 60, 72, 36 },
			{ 97, 111, 103, 115, 83, 79 }, { 68, 44, 8, 9, 45, 69 },
			{ 25, 99, 91, 90, 98, 24 }, { 81, 113, 101, 109, 95, 77 },
			{ 54, 38, 74, 62, 48, 42 }, { 0, 10, 46, 40 }, { 27, 31, 111, 97 },
			{ 60, 46, 10, 22, 94, 76, 92, 20, 8, 44 },
			{ 49, 15, 27, 97, 79, 99, 25, 13, 51, 63 }, { 96, 110, 30, 26 },
			{ 41, 47, 11, 1 }, { 43, 49, 63, 75, 39, 55 },
			{ 76, 94, 108, 100, 112, 80 },
			{ 62, 50, 12, 24, 98, 78, 96, 26, 14, 48 },
			{ 45, 9, 21, 93, 77, 95, 23, 11, 47, 61 },
			{ 51, 13, 12, 50, 70, 71 }, { 21, 20, 92, 88, 89, 93 },
			{ 114, 118, 106, 102 }, { 33, 37, 53, 65 }, { 70, 50, 62, 74 },
			{ 93, 89, 81, 77 }, { 113, 117, 105, 101 }, { 34, 38, 54, 66 },
			{ 69, 45, 61, 73 }, { 98, 90, 82, 78 }, { 64, 52, 36, 32 },
			{ 103, 107, 119, 115 }, { 76, 80, 88, 92 }, { 75, 63, 51, 71 },
			{ 58, 34, 66, 64, 32, 56 }, { 105, 117, 85, 87, 119, 107 },
			{ 67, 55, 39, 35 }, { 100, 104, 116, 112 }, { 79, 83, 91, 99 },
			{ 72, 60, 44, 68 }, { 33, 65, 67, 35, 59, 57 },
			{ 104, 106, 118, 86, 84, 116 }, { 6, 18, 16, 4 }, { 5, 17, 19, 7 },
			{ 13, 25, 24, 12 }, { 8, 20, 21, 9 }, { 57, 59, 58, 56 },
			{ 84, 86, 87, 85 } },
			{ { 43, 41, 16, 18 }, { 13, 5, 2, 10 }, { 33, 35, 26, 24 },
			{ 7, 15, 8, 0 }, { 19, 17, 40, 42 }, { 11, 3, 4, 12 },
			{ 25, 27, 34, 32 }, { 1, 9, 14, 6 }, { 44, 22, 23, 45 },
			{ 38, 28, 29, 39 }, { 47, 21, 20, 46 }, { 37, 31, 30, 36 },
			{ 8, 18, 16, 10, 2, 24, 26, 0 }, { 1, 27, 25, 3, 11, 17, 19, 9 },
			{ 40, 47, 46, 41, 43, 44, 45, 42 },
			{ 34, 37, 36, 35, 33, 38, 39, 32 },
			{ 14, 23, 22, 15, 7, 30, 31, 6 }, { 4, 29, 28, 5, 13, 20, 21, 12 },
			{ 45, 23, 14, 9, 19, 42 }, { 34, 27, 1, 6, 31, 37 },
			{ 40, 17, 11, 12, 21, 47 }, { 39, 29, 4, 3, 25, 32 },
			{ 43, 18, 8, 15, 22, 44 }, { 36, 30, 7, 0, 26, 35 },
			{ 46, 20, 13, 10, 16, 41 }, { 33, 24, 2, 5, 28, 38 } },
			{ { 29, 23, 28, 6, 7 }, { 25, 23, 29 }, { 24, 28, 23 },
			{ 4, 6, 28 }, { 13, 7, 6 }, { 5, 29, 7 }, { 15, 1, 5 },
			{ 18, 20, 25 }, { 19, 17, 24 }, { 0, 14, 4 }, { 21, 22, 13 },
			{ 1, 18, 25, 29, 5 }, { 20, 19, 24, 23, 25 }, { 17, 0, 4, 28, 24 },
			{ 14, 21, 13, 6, 4 }, { 22, 15, 5, 7, 13 }, { 11, 12, 3, 16, 2 },
			{ 2, 16, 8 }, { 16, 3, 9 }, { 3, 12, 27 }, { 12, 11, 10 },
			{ 11, 2, 26 }, { 26, 0, 17 }, { 8, 21, 14 }, { 9, 15, 22 },
			{ 27, 18, 1 }, { 10, 19, 20 }, { 26, 2, 8, 14, 0 },
			{ 8, 16, 9, 22, 21 }, { 9, 3, 27, 1, 15 }, { 27, 12, 10, 20, 18 },
			{ 10, 11, 26, 17, 19 } },
			{ { 35, 22, 26 }, { 36, 27, 23 }, { 39, 7, 6 }, { 34, 4, 5 },
			{ 37, 28, 24 }, { 38, 25, 29 }, { 9, 13, 1 }, { 8, 0, 12 },
			{ 11, 3, 15 }, { 10, 14, 2 }, { 53, 44, 40 }, { 54, 41, 45 },
			{ 57, 18, 19 }, { 52, 17, 16 }, { 55, 42, 46 }, { 56, 47, 43 },
			{ 33, 31, 21 }, { 32, 20, 30 }, { 58, 50, 48 }, { 59, 49, 51 },
			{ 26, 30, 20, 35 }, { 22, 35, 0, 8 }, { 9, 1, 36, 23 },
			{ 36, 21, 31, 27 }, { 7, 39, 29, 25 }, { 24, 28, 39, 6 },
			{ 34, 26, 22, 4 }, { 5, 23, 27, 34 }, { 2, 37, 24, 10 },
			{ 20, 32, 28, 37 }, { 38, 29, 33, 21 }, { 11, 25, 38, 3 },
			{ 54, 13, 9, 41 }, { 40, 8, 12, 53 }, { 56, 43, 11, 15 },
			{ 14, 10, 42, 55 }, { 44, 53, 58, 48 }, { 49, 59, 54, 45 },
			{ 47, 57, 19, 43 }, { 42, 18, 57, 46 }, { 52, 16, 40, 44 },
			{ 45, 41, 17, 52 }, { 58, 55, 46, 50 }, { 51, 47, 56, 59 },
			{ 30, 31, 33, 32 }, { 16, 17, 5, 4 }, { 0, 2, 14, 12 },
			{ 13, 15, 3, 1 }, { 6, 7, 19, 18 }, { 50, 51, 49, 48 },
			{ 2, 0, 35, 20, 37 }, { 21, 36, 1, 3, 38 }, { 28, 32, 33, 29, 39 },
			{ 26, 34, 27, 31, 30 }, { 41, 9, 23, 5, 17 }, { 40, 16, 4, 22, 8 },
			{ 19, 7, 25, 11, 43 }, { 10, 24, 6, 18, 42 },
			{ 55, 58, 53, 12, 14 }, { 56, 15, 13, 54, 59 },
			{ 57, 47, 51, 50, 46 }, { 48, 49, 45, 52, 44 } },
			{ { 2, 10, 8, 0 }, { 1, 9, 11, 3 }, { 23, 21, 20, 22 },
			{ 18, 16, 17, 19 }, { 4, 12, 13, 5 }, { 7, 15, 14, 6 },
			{ 12, 20, 21, 13 }, { 15, 23, 22, 14 }, { 5, 17, 16, 4 },
			{ 6, 18, 19, 7 }, { 5, 13, 9, 1 }, { 3, 11, 15, 7 },
			{ 21, 23, 11, 9 }, { 1, 3, 19, 17 }, { 0, 8, 12, 4 },
			{ 6, 14, 10, 2 }, { 8, 10, 22, 20 }, { 16, 18, 2, 0 },
			{ 21, 9, 13 }, { 15, 11, 23 }, { 5, 1, 17 }, { 19, 3, 7 },
			{ 12, 8, 20 }, { 22, 10, 14 }, { 16, 0, 4 }, { 6, 2, 18 } },
			{ { 2, 0, 16 }, { 2, 16, 8 }, { 2, 18, 1 }, { 2, 8, 18 },
			{ 0, 3, 19 }, { 0, 19, 10 }, { 0, 10, 16 }, { 1, 18, 11 },
			{ 1, 17, 3 }, { 1, 11, 17 }, { 3, 17, 9 }, { 3, 9, 19 },
			{ 16, 10, 12 }, { 18, 8, 14 }, { 17, 11, 13 }, { 19, 9, 15 },
			{ 8, 20, 14 }, { 10, 22, 12 }, { 11, 23, 13 }, { 9, 21, 15 },
			{ 12, 22, 6 }, { 12, 6, 20 }, { 14, 20, 4 }, { 14, 4, 23 },
			{ 15, 21, 5 }, { 15, 5, 22 }, { 13, 23, 7 }, { 13, 7, 21 },
			{ 20, 6, 4 }, { 22, 5, 6 }, { 23, 4, 7 }, { 21, 7, 5 },
			{ 0, 2, 1, 3 }, { 20, 8, 16, 12 }, { 23, 11, 18, 14 },
			{ 9, 17, 13, 21 }, { 10, 19, 15, 22 }, { 7, 4, 6, 5 } },
			{ { 4, 0, 8 }, { 4, 8, 2 }, { 4, 28, 14 }, { 4, 2, 28 },
			{ 0, 26, 18 }, { 0, 18, 24 }, { 0, 24, 8 }, { 14, 28, 6 },
			{ 14, 44, 38 }, { 14, 6, 44 }, { 26, 38, 40 }, { 26, 40, 36 },
			{ 26, 36, 18 }, { 8, 24, 16 }, { 38, 44, 20 }, { 38, 20, 40 },
			{ 28, 2, 12 }, { 2, 42, 12 }, { 18, 36, 34 }, { 24, 30, 16 },
			{ 44, 6, 10 }, { 6, 48, 10 }, { 40, 20, 22 }, { 36, 32, 34 },
			{ 16, 30, 58 }, { 16, 58, 54 }, { 12, 42, 52 }, { 12, 52, 50 },
			{ 20, 46, 22 }, { 42, 54, 47 }, { 42, 47, 52 }, { 34, 32, 57 },
			{ 34, 57, 56 }, { 30, 56, 33 }, { 30, 33, 58 }, { 10, 48, 51 },
			{ 10, 51, 53 }, { 54, 58, 23 }, { 54, 23, 47 }, { 48, 50, 49 },
			{ 48, 49, 51 }, { 22, 46, 55 }, { 22, 55, 59 }, { 50, 52, 11 },
			{ 50, 11, 49 }, { 32, 59, 31 }, { 32, 31, 57 }, { 56, 57, 35 },
			{ 56, 35, 33 }, { 46, 53, 43 }, { 46, 43, 55 }, { 47, 23, 21 },
			{ 53, 51, 13 }, { 53, 13, 43 }, { 59, 55, 17 }, { 59, 17, 31 },
			{ 33, 35, 37 }, { 23, 41, 21 }, { 49, 11, 7 }, { 11, 45, 7 },
			{ 31, 17, 25 }, { 35, 19, 37 }, { 43, 13, 3 }, { 21, 41, 39 },
			{ 21, 39, 45 }, { 13, 29, 3 }, { 17, 9, 25 }, { 37, 19, 27 },
			{ 37, 27, 41 }, { 41, 27, 39 }, { 7, 45, 15 }, { 7, 15, 29 },
			{ 45, 39, 15 }, { 25, 9, 1 }, { 25, 1, 19 }, { 19, 1, 27 },
			{ 3, 29, 5 }, { 3, 5, 9 }, { 29, 15, 5 }, { 9, 5, 1 },
			{ 38, 26, 0, 4, 14 }, { 2, 8, 16, 54, 42 }, { 50, 48, 6, 28, 12 },
			{ 56, 30, 24, 18, 34 }, { 46, 20, 44, 10, 53 },
			{ 32, 36, 40, 22, 59 }, { 41, 23, 58, 33, 37 },
			{ 45, 11, 52, 47, 21 }, { 35, 57, 31, 25, 19 },
			{ 13, 51, 49, 7, 29 }, { 43, 3, 9, 17, 55 }, { 15, 39, 27, 1, 5 } },
			{ { 5, 11, 9, 7, 3, 17, 19, 1 }, { 0, 18, 16, 2, 6, 8, 10, 4 },
			{ 2, 23, 22, 3, 7, 14, 15, 6 }, { 4, 13, 12, 5, 1, 20, 21, 0 },
			{ 8, 15, 14, 9, 11, 12, 13, 10 },
			{ 18, 21, 20, 19, 17, 22, 23, 16 }, { 15, 8, 6 }, { 4, 10, 13 },
			{ 2, 16, 23 }, { 21, 18, 0 }, { 7, 9, 14 }, { 12, 11, 5 },
			{ 22, 17, 3 }, { 1, 19, 20 } },
			{ { 2, 41, 45, 43, 39, 0, 33, 47, 49, 35 },
			{ 46, 42, 3, 36, 50, 48, 34, 1, 40, 44 },
			{ 1, 34, 18, 23, 20, 15, 4, 58, 54, 13 },
			{ 48, 50, 19, 24, 28, 30, 29, 27, 23, 18 },
			{ 36, 3, 14, 55, 59, 5, 16, 21, 24, 19 },
			{ 42, 46, 51, 8, 32, 26, 10, 12, 55, 14 },
			{ 44, 40, 13, 54, 11, 9, 25, 31, 8, 51 },
			{ 5, 59, 12, 10, 53, 57, 41, 2, 7, 38 },
			{ 26, 32, 31, 25, 52, 56, 43, 45, 57, 53 },
			{ 9, 11, 58, 4, 37, 6, 0, 39, 56, 52 },
			{ 15, 20, 27, 29, 17, 22, 47, 33, 6, 37 },
			{ 30, 28, 21, 16, 38, 7, 35, 49, 22, 17 }, { 8, 31, 32 },
			{ 17, 29, 30 }, { 46, 44, 51 }, { 49, 47, 22 }, { 9, 52, 25 },
			{ 26, 53, 10 }, { 20, 23, 27 }, { 28, 24, 21 }, { 39, 43, 56 },
			{ 57, 45, 41 }, { 34, 48, 18 }, { 19, 50, 36 }, { 11, 54, 58 },
			{ 59, 55, 12 }, { 40, 1, 13 }, { 14, 3, 42 }, { 33, 0, 6 },
			{ 7, 2, 35 }, { 37, 4, 15 }, { 16, 5, 38 } },
			{ { 52, 10, 23, 22, 8 }, { 50, 38, 39, 51, 29 },
			{ 59, 27, 15, 11, 1 }, { 19, 41, 47, 54, 17 },
			{ 18, 16, 53, 46, 40 }, { 0, 9, 14, 26, 58 },
			{ 35, 25, 43, 49, 37 }, { 3, 57, 21, 31, 7 },
			{ 33, 28, 32, 44, 45 }, { 20, 56, 2, 5, 30 },
			{ 36, 48, 42, 24, 34 }, { 12, 4, 55, 6, 13 },
			{ 8, 58, 26, 50, 29, 52 }, { 52, 29, 51, 27, 59, 10 },
			{ 10, 59, 1, 41, 19, 23 }, { 23, 19, 17, 16, 18, 22 },
			{ 22, 18, 40, 0, 58, 8 }, { 12, 24, 42, 2, 56, 4 },
			{ 4, 56, 20, 32, 28, 55 }, { 55, 28, 33, 21, 57, 6 },
			{ 6, 57, 3, 43, 25, 13 }, { 13, 25, 35, 34, 24, 12 },
			{ 39, 37, 49, 15, 27, 51 }, { 15, 49, 43, 3, 7, 11 },
			{ 11, 7, 31, 47, 41, 1 }, { 47, 31, 21, 33, 45, 54 },
			{ 54, 45, 44, 53, 16, 17 }, { 53, 44, 32, 20, 30, 46 },
			{ 46, 30, 5, 9, 0, 40 }, { 9, 5, 2, 42, 48, 14 },
			{ 14, 48, 36, 38, 50, 26 }, { 38, 36, 34, 35, 37, 39 } },
			{ { 16, 10, 8, 14 }, { 13, 7, 9, 15 }, { 21, 23, 20, 17 },
			{ 11, 4, 1, 5 }, { 12, 18, 22, 19 }, { 3, 0, 2, 6 },
			{ 18, 12, 6, 2, 7, 13 }, { 14, 8, 3, 6, 12, 19 },
			{ 15, 9, 4, 11, 17, 20 }, { 21, 17, 11, 5, 10, 16 },
			{ 19, 22, 23, 21, 16, 14 }, { 13, 15, 20, 23, 22, 18 },
			{ 8, 10, 5, 1, 0, 3 }, { 2, 0, 1, 4, 9, 7 } },
			{ { 10, 11, 7 }, { 2, 8, 0 }, { 1, 9, 3 }, { 5, 4, 6 },
			{ 10, 7, 6, 4, 2, 0 }, { 1, 3, 5, 6, 7, 11 }, { 8, 2, 4, 5, 3, 9 },
			{ 1, 11, 10, 0, 8, 9 } }		};

	/** Edge. */
	private double				R;

	/** Type. */
	private int					type;

	/** The name. */
	private String				name;

	/**
	 * Instantiates a new Archimedean polyhedron.
	 *
	 */
	public HEC_Archimedes() {
		super();
		R = 1;
		type = 1;
		name = "default";

	}

	/**
	 * Instantiates a new Archimedean polyhedron.
	 *
	 * @param type the type
	 * @param E edge length
	 */
	public HEC_Archimedes(final int type, final double E) {
		super();
		R = E;
		this.type = type;
		if ((type < 1) || (type > 13)) {
			throw new IllegalArgumentException(
					"Type of Archimedean polyhedron should be between 1 and 13.");
		}

		name = names[type - 1];

		center = new WB_Point3d();
	}

	/**
	 * Set edge length.
	 *
	 * @param E edge length
	 * @return self
	 */
	public HEC_Archimedes setEdge(final double E) {
		R = E;
		return this;
	}

	/**
	 * Set type.
	 *
	 * @param type the type
	 * @return self
	 */
	public HEC_Archimedes setType(final int type) {
		if ((type < 1) || (type > 13)) {
			throw new IllegalArgumentException(
					"Type of Archimedean polyhedron should be between 1 and 13.");
		}
		this.type = type;
		name = names[type - 1];
		return this;
	}

	/**
	 * Gets the name.
	 *
	 * @return the name
	 */
	public String getName() {
		return (name);

	}

	/*
	 * (non-Javadoc)
	 * @see wblut.hemesh.HE_Creator#create()
	 */
	@Override
	public HE_Mesh createBase() {

		final double[][] verts = vertices[type - 1];
		final int[][] facs = faces[type - 1];

		final HEC_FromFacelist fl = new HEC_FromFacelist();
		fl.setVertices(verts).setFaces(facs);
		final HE_Mesh result = fl.create();
		result.scale(R);
		return result;

	}
}
